//
//  testV.m
//  LazyScrollViewDemo
//
//  Created by hejianghai on 2017/3/22.
//  Copyright © 2017年 taobao. All rights reserved.
//

#import "testV.h"
#import "TMMuiLazyScrollView.h"

@implementation testV

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(instancetype)initWithFrame:(CGRect)frame

{
    if (self = [super initWithFrame:frame]) {
      
        UIImage  *img=[UIImage imageNamed:@"cycle_image3"];
        self.imv=[[UIImageView alloc]initWithFrame:CGRectMake(0, 20, self.frame.size.width, self.frame.size.height-20)];
        self.imv.image=img;
        self.lab=[[UILabel alloc]initWithFrame:CGRectMake(0, 0,self.frame.size.width , 20)];
        self.lab.backgroundColor=[UIColor whiteColor];
        self.lab.textColor=[UIColor redColor];
        self.lab.textAlignment=NSTextAlignmentCenter;
        self.lab.text=@"你好世界";
        [self addSubview:self.imv];
        [self addSubview:self.lab];
    }
    return self;
}

-(void)layoutSubviews
{
    self.imv.frame=CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
}
- (void)mui_prepareForReuse
{
    NSLog(@"test重用");
  
}

- (void)mui_didEnterWithTimes:(NSUInteger)times
{
    NSLog(@"test显示");
   
}

- (void)mui_afterGetView
{
    NSLog(@"test初始化");
}
@end
